﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctrlEditorUsuario.ascx.cs" Inherits="Rendiciones.Web.Mantenedores.usercontrols.ctrlEditorUsuario" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Button ID="btnEditorUsuario" runat="server" Style="display: none" />
<asp:ModalPopupExtender ID="mpeEditorUsuario"  TargetControlID="btnEditorUsuario" PopupControlID="upEditorUsuario" BackgroundCssClass="vs12_light_opacity" runat="server"/>
<asp:UpdatePanel runat="server" ID="upEditorUsuario">
    <ContentTemplate>
        <div class="vs12_light_form vs12_light_form_modal" style="width:600px;" runat="server" id="pnlUsuario">
            <div class="title">
                <p><asp:Label runat="server" ID="lblTitulo" Text="Agregar Usuario"></asp:Label></p>
                <div class="buttons">
                    <asp:Button runat="server" ID="btnCerrarEditorUsuario" CssClass="close" OnClick="BtnCerrarEditorUsuarioClick"/>
                </div>
            </div>
            <div class="vs12_light_contenedorMsg" runat="server" id="ErroresUsuario">
                <table style="width: 100%">
                    <tr>
                        <td style="width:24px; vertical-align: top">
                            <asp:Image ID="ImgErroresUsuario" runat="server" ImageUrl="~/img/icons/Mensaje/icoError.png"/> 
                        </td>
                        <td>
                            <asp:Label ID="lblErroresUsuario" runat="server" Text=""/>
                        </td>
                    </tr>
                </table>
            </div>   
            <div class="content">
                <asp:HiddenField runat="server" ID="hdfIdUsuario" value="0"/>
                <asp:HiddenField runat="server" ID="hdfRevision" value=""/>
                <asp:HiddenField runat="server" ID="hdfSaldo" value="0"/>
                        <table>
                            <tr>
                                <td style="width:20%;"><label for="<%=txtNombre.ClientID%>">Nombre</label></td>
                                <td colspan="2"><asp:TextBox runat="server" ID="txtNombre" Text="" CssClass="w90p" MaxLength="50"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><label for="<%=txtApellido.ClientID%>">Apellido</label></td>
                                <td colspan="2"><asp:TextBox runat="server" ID="txtApellido" Text="" CssClass="w90p" MaxLength="50"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><label for="<%=txtEmail.ClientID%>">E-Mail</label></td>
                                <td colspan="2"><asp:TextBox runat="server" ID="txtEmail" Text="" CssClass="w90p" MaxLength="100"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><label for="<%=txtRut.ClientID%>">Rut</label></td>
                                <td><asp:TextBox runat="server" ID="txtRut" Text="" CssClass="w90p" MaxLength="10"></asp:TextBox></td>
                                <td rowspan="6">
                                    <fieldset>
                                        <legend>Area</legend>
                                        <ul>
                                            <li><asp:RadioButton runat="server" ID="rbtProyectos" GroupName="area" Text="Proyectos" AutoPostBack="True"/></li>
                                            <li><asp:RadioButton runat="server" ID="rbtContabilidad" GroupName="area" Text="Contabilidad" AutoPostBack="True"/></li>
                                            <li><asp:RadioButton runat="server" ID="rbtTesoreria" GroupName="area" Text="Tesoreria" AutoPostBack="True"/></li>
                                        </ul>
                                    </fieldset>
                                </td>
                            </tr>
                            <tr>
                                <td><label for="<%=txtUsername.ClientID%>">Login</label></td>
                                <td><asp:TextBox runat="server" ID="txtUsername" Text="" CssClass="w90p" MaxLength="50"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td><label for="<%=txtSaldoAsignado.ClientID%>">Saldo Asignado</label></td>
                                <td><asp:TextBox runat="server" ID="txtSaldoAsignado" Text="" CssClass="w90p" MaxLength="10"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:CheckBox runat="server" ID="chkActivo" Text="Activo"/>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:CheckBox runat="server" ID="chkEsAdministrador" Text="Es Administrador del Sistema" AutoPostBack="True"/>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                <td></td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <fieldset>
                                        <legend>
                                            <asp:CheckBox ID="chkRegistrarPassWord" Text="" runat="server" AutoPostBack="True" OnCheckedChanged="ChkRegistrarPassWordChanged"/>
                                            Registrar Password
                                        </legend>
                                        <table>
                                            <tr>
                                                <td style="width:25%;"><label for="<%=txtPassword.ClientID%>">Password</label></td>
                                                <td><asp:TextBox runat="server" ID="txtPassword" Text="" CssClass="w90p" MaxLength="50" TextMode="Password"></asp:TextBox></td>
                                            </tr>
                                            <tr>
                                                <td><label for="<%=txtPassword2.ClientID%>">Confirmar Password</labe></td>
                                                <td><asp:TextBox runat="server" ID="txtPassword2" Text="" CssClass="w90p" MaxLength="50" TextMode="Password"></asp:TextBox></td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <asp:Button runat="server" CssClass="boton w100" ID="btnGuardar" Text="Guardar" OnClick="BtnGuardarClick"/>
                                    <asp:Button runat="server" CssClass="boton w100" ID="btnCancelar" Text="Cancelar" OnClick="BtnCancelarClick"/>
                                <td>
                            </tr>
                        </table>
                <br />
            </div> 
            <div class="h30"></div>
            <div class="status">
                <p><asp:Label runat="server" ID="lblEstado" Text="Listo"></asp:Label></p>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
